import request from '@/utils/request'

export function fetchOrgList() {
  return request({
    url: 'manager/org',
    method: 'get'
  })
}

export function delayOrgExp(id, data) {
  return request({
    url: `manager/org/${id}/delay`,
    method: 'patch',
    data
  })
}

export function fetchOrgInfo(id) {
  return request({
    url: `manager/org/${id}`,
    method: 'get'
  })
}

export function resetOrgPwd(id, data) {
  return request({
    url: `manager/org/reset/${id}`,
    method: 'post',
    data
  })
}

export function createOrg(data) {
  return request({
    url: 'manager/org',
    method: 'post',
    data
  })
}

export function updateOrg(id, data) {
  return request({
    url: `manager/org/${id}`,
    method: 'patch',
    data
  })
}

// export function deleteOrg(data) {
//   return request({
//     url: 'manager/org',
//     method: 'delete',
//     data
//   })
// }
